package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.UserAddress;
import com.fenxiangtech.mall.model.qc.UserAddressQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface UserAddressDAO{

    int insertUserAddress(UserAddress userAddress);

    int updateUserAddress(UserAddress userAddress);

    List<UserAddress> listUserAddress(UserAddressQC userAddress);

    Long countUserAddress(UserAddressQC userAddress);

    int insertBatch(@Param("list") List<UserAddress> userAddresss);

    int deleteUserAddressById(Long id);

}